<?php

/**
 *
 * This file sets up environment for testing Solar with PHPUnit3.
 *
 *
 * @author Travis Swicegood <development [at] domain51 [dot] com>
 *
 * @package Solar
 *
 * @subpackage UnitTests
 *
 * @license Release under the same license as Solar
 *
 * @ignore
 */


/**
 *
 * Path to PHPUnit3
 *
 * Leave empty if PHPUnit3 is already in your include_path.
 *
 */
$config['phpUnitPath'] = '';


/**
 *
 * An array of paths to various code that must be put in the include_path for
 * Solar to know about it.
 *
 * Note that the array is reversed, so priority is given to the last path in the
 * array.
 *
 */
$config['code_path'] = array(
    dirname(__FILE__) . '/../Solar/',
    dirname(__FILE__) . '/../',
    
);

/**
 *
 * Nothing below this point should need to be changed.
 *
 * Setup the include_path based on the paths that were provided above.
 *
 */

// set PHPUnit3 path
if (!empty($config['phpUnitPath'])) {
    set_include_path($config['phpUnitPath'] . ':' . get_include_path());
}


// reverse order so the last path added to config is the first
krsort($config['code_path']);
set_include_path(implode(':', $config['code_path']) . get_include_path());

// add path for test support directory and give priority.
set_include_path(dirname(__FILE__) . '/support/:' . get_include_path());


// Include Solar.php so the base Solar object is available.
include_once 'Solar.php';

unset($config);
?>
